package com.example.fp.cgc.controller

import com.example.fp.cgc.mapper.NoticeMapper
import com.example.fp.cgc.util.SpringUtil
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Lazy
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import springfox.documentation.swagger2.annotations.EnableSwagger2

/**
 * @since 2020-03-06
 * @author 蔡
 */
@RestController
@RequestMapping
@EnableSwagger2
open class NoticeController {

    @Autowired
    @Lazy
    lateinit var noticeMapper: NoticeMapper

    companion object {
        val noticeController: NoticeController by lazy {
            SpringUtil.getBean(NoticeController::class.java)
        }
    }


}